﻿namespace Admin.NET.Core.Btms;


/// <summary>
/// 根据关键字分页检索
/// </summary>
public class BaseKeywordPageInput
{
    /// <summary>
    /// 模糊查询关键字
    /// </summary>
    public string? Keyword { get; set; }

    /// <summary>
    /// 开始时间
    /// </summary>
    public DateTime? StartTime { get; set; }

    /// <summary>
    /// 结束时间
    /// </summary>
    public DateTime? EndTime { get; set; }

    /// <summary>
    /// 当前页码
    /// </summary>
    [DataValidation(ValidationTypes.Numeric)]
    public int Page { get; set; } = 1;

    /// <summary>
    /// 页码容量
    /// </summary>
    //[Range(0, 100, ErrorMessage = "页码容量超过最大限制")]
    [DataValidation(ValidationTypes.Numeric)]
    public int PageSize { get; set; } = 10;

    /// <summary>
    /// 排序字段
    /// </summary>
    public string? Field { get; set; }

    /// <summary>
    /// 排序方向
    /// </summary>
    public string? Order { get; set; }

    /// <summary>
    /// 降序排序
    /// </summary>
    public string? DescStr { get; set; } = "descending";
}
